package pl.myapp.webtest.rest.xml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: kaafaar
 * Date: 15.05.11
 * Time: 00:51
 * To change this template use File | Settings | File Templates.
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class User implements Serializable {
    private String name;
    private String phone;
    private String city;
    private String country;
	private UserData userData;

    public User() {
    }

	public User(String name, String phone, String city, String country, UserData userData) {
		this.name = name;
		this.phone = phone;
		this.city = city;
		this.country = country;
		this.userData = userData;
	}

	public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

	public UserData getUserData() {
		return userData;
	}

	public void setUserData(UserData userData) {
		this.userData = userData;
	}

	@Override
	public String toString() {
		return "User{" +
				"name='" + name + '\'' +
				", phone='" + phone + '\'' +
				", city='" + city + '\'' +
				", country='" + country + '\'' +
				", userData=" + userData +
				'}';
	}
}
